Polls
This module provides methods for using and managing polls in your Rooms.
The Polls interface offers functionality to interact with polls. Polls are always linked to a specific Room and pass through a set of states during all their lifetime. For this module, we distinguish 2 types of members of the room:
Users: Any member of the bubble who can vote when a poll is available
Organizers: Bubble organizers have access to the management part of a poll (create, start/stop...)
This interface can be used to:
Create, modify or delete polls: As an organizer, you can create new polls, you can modify existing polls or you can delete polls.
Start or stop polls: As an organizer, you can publish a poll so others can vote or you can finish a poll to have the final results.
Vote for an answer: As a user, you can vote for one or more answers when a poll has been started and until it is ended.
Types
Interface defining callbacks for handling events related to poll changes within rooms.
Functions
Create a Poll in a Room.
Delete a poll, all data related to the poll are lost forever.
Get all the polls for a given room.
Publish a poll, opening the possibility for members to vote.
Registers a listener to monitor poll changes in rooms.
End a poll, making it impossible to vote anymore.
Unpublish a poll, canceling the votes already made.
Unregisters a previously registered listener for poll changes in rooms.
Update a Poll. The id in the poll needs to be one of an existing poll.
Submit the votes of the user for a poll.